home *** CD-ROM | disk | FTP | other *** search
- %
- %
- % mball - multiple colored balls over a plain
- %
- % author: Barry T. Drake, Occidental College Computer Center
- % e-mail: bdrake@oxy.edu
- % date: 7/23/91
- % thanks-to: C. Regis Wilson, t_pascal@oxy.edu
- %
- % modified: ajones, 072391, fixed the mirrored surface appearance
- % BTD, 072491, added colors and made it *big*
- %
- % notes: 1) This ray file takes ~30,000 cpu seconds to trace on
- % a Sun 4/280 (a 10 Mips machine).
- % 2) The idea for this came from a Sun .background that we ftpd
- % from someplace whose name we lost (sorry!).
- % 3) Changing screen to 100 100 and depth to 2 decreases
- % trace time to 2000 cpu seconds on a 68030 (NeXT cube).
- % 4) If you want better shadows of the pyramid, try decreasing
- % the reflectivity of surface.
- % 5) I think this is a lot of fun. Thanks, Craig!
- %
- eye -8 -20 6
- look 0 0 6
- up 0 0 1
- fov 30
- light extended -8 -10 20 mono 2.0 2.5 8
-
- %%surfaces
- #define mirror \
- surface 0.4 0.4 0.4 0.05 0.05 0.05 .8 .8 .8 60 0.8
-
- #define redmirror \
- surface 0.8 0.00 0.00 0.15 0.00 0.00 .8 .8 .8 60 0.8
-
- #define blumirror \
- surface 0.00 0.00 0.8 0.00 0.00 0.15 .8 .8 .8 60 0.8
-
- #define grnmirror \
- surface 0.00 0.8 0.00 0.00 0.15 0.00 .8 .8 .8 60 0.8
-
- #define whitesurf \
- surface 0.6 0.6 0.4 0.5 0.5 0.5 0.2 0.2 0.2 18 0.5
-
- %% plane
- quadrangle
- marble scale 4 4 4
- transform scale 1000
- whitesurf
- data 1 1 0 -1 1 0 -1 -1 0 1 -1 0
-
- %% balls
- mirror sphere 0 15 11 10
- mirror sphere 3 -5 12 1
- redmirror sphere 2 -3.3 10 1
- mirror sphere 2 -6.7 10 1
- grnmirror sphere 5 -5 10 1
- mirror sphere 1 -1.6 8 1
- blumirror sphere 1 -5 8 1
- redmirror sphere 1 -8.4 8 1
- grnmirror sphere 4 -3.3 8 1
- mirror sphere 4 -6.7 8 1
- blumirror sphere 7 -5 8 1
- blumirror sphere 0 0.1 6 1
- grnmirror sphere 0 -3.3 6 1
- mirror sphere 0 -6.7 6 1
- mirror sphere 0 -10.1 6 1
- mirror sphere 3 -1.6 6 1
- blumirror sphere 3 -5 6 1
- grnmirror sphere 3 -8.4 6 1
- mirror sphere 6 -3.3 6 1
- mirror sphere 6 -6.7 6 1
- grnmirror sphere 9 -5 6 1
- mirror sphere -1 1.8 4 1
- redmirror sphere -7.5 -1 1.001 1 % this is the fallen ball
- mirror sphere -1 -5 4 1
- mirror sphere -1 -8.4 4 1
- mirror sphere -1 -11.8 4 1
- blumirror sphere 2 0.1 4 1
- mirror sphere 2 -3.3 4 1
- grnmirror sphere 2 -6.7 4 1
- mirror sphere 2 -10.1 4 1
- blumirror sphere 5 -1.6 4 1
- blumirror sphere 5 -5 4 1
- blumirror sphere 5 -8.4 4 1
- mirror sphere 8 -3.3 4 1
- mirror sphere 8 -6.7 4 1
- redmirror sphere 11 -5 4 1
-